#ifndef _UTILS_H_
#define _UTILS_H_

#include<stdint.h>

#define PRINT_TOKEN(token) printf(#token " is %d\n", token)
#define STR_EXPAND(tok) #tok
#define STR(tok) STR_EXPAND(tok)

int count_chars(const char *string, char ch);
uint32_t my_ntohl(const void *buf);
int my_rand(int n);

#endif // ifndef _UTILS_H_ 
